% Get vector weight for a portfolio
% Input: number_of_stocks  
% Output: weights 
function weights = getRandomWeights(number_of_stocks)
    % random uniformly number_of_stocks of value
    weights = randi(100, number_of_stocks, 1);
    % normalize vector of weight to sum(weights) = 1
    weights = weights / sum(weights);
end